#include "PersonalDiary.h"
#include <iostream>

using namespace std;

int main(){
    string date;
    cout << "Enter date (YYYY-MM-DD): " << endl;
    cin >> date;
    cin.ignore();//忽略换行符
    PersonalDiary diary("data_file.txt");
    if(diary.removeEntity(date)){
        cout << "Entity for this date removed." << endl;
    }
    else{//如果删除失败
        cout << "No entry for this date." << endl;//输出无该日期的条目信息
        return -1;
    }
    return 0;
}